package com.alcatel_lucent.scalastudy.model

import scala.collection.mutable.ArrayBuffer

/**
 * Created with IntelliJ IDEA.
 * User: Guoshun Wu
 * Date: 13-7-4
 * Time: 下午8:46
 */
class BasicIntQueue extends IntQueue {
  private val buf = new ArrayBuffer[Int]

  def get(): Int = buf.remove(0)

  def put(x: Int) {
        buf += x
  }
}
